<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">奖品管理
            <button class="btn btn-primary btn-sm" ng-click="editPrize()">添加奖品</button>
        </h3>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered table-hover" ng-show="dataList.length>0">
            <thead>
            <tr>
                <th>序号</th>
                <th>奖品类型</th>
                <th>奖品说明</th>
                <th>奖品数量</th>
                <th>奖品剩余数量</th>
                <th>中奖几率</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="data in dataList">
                <th ng-bind="$index+1"></th>
                <td ng-bind="data.title"></td>
                <td ng-bind="data.description"></td>
                <td ng-bind="data.total"></td>
                <td ng-bind="data.unExchanged"></td>
                <td ng-bind="data.risk+'%'"></td>
                <td>
                    <button type="button" class="btn btn-primary btn-xs" ng-click="editPrize(data.id)">修改</button>
                    <!--<button type="button" class="btn btn-primary btn-xs">查看</button>-->
                </td>

            </tr>
            </tbody>
        </table>
        <div ng-show="dataList.length==0" style="margin-top: 100px;"
             class="text-center ng-cloak" ng-cloak ng-bind="'暂时没有数据'">
        </div>
    </div>
</div>

<div id="toast" ng-class="{'hidden':!successFlag}">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-icon-success-no-circle weui-icon_toast"></i>
        <p class="weui-toast__content">添加成功</p>
    </div>
</div>